#  导包
import requests

#  请求行
url = "http://127.0.0.1:8000/api/add_event/"
#  请求头
heads = {"Content-Type": "application/x-www-form-urlencoded"}
#  请求体
body = {
    "eid": "521111",
    "name": "爱拼才会赢",
    "limit": "20",
    "status": "1",
    "address": "武汉源码时代",
    "start_time": "2022-07-25"
}
#  发送请求
resp = requests.post(url, headers=heads, data=body)
#  查看响应结果
print(resp.status_code)
print(resp.text)
print(resp.json())
